//
//  UILabel+labelHeight.m
//  StoneMason
//
//  Created by zhenfen on 16/12/21.
//  Copyright © 2016年 iOS1. All rights reserved.
//

#import "UILabel+labelHeight.h"

@implementation UILabel (labelHeight)
- (CGFloat)getWidth:(NSString *)str font:(NSInteger)font{
    return [str sizeWithAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:font]}].height+1;
}
- (CGFloat)getBoldHeight:(NSString *)text font:(NSInteger)font {
    return [text sizeWithAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:font]}].height;
}

@end
